#ifndef _CLIENTSENDER_H
#define _CLIENTSENDER_H

#pragma once
#include "GamePlayerClient.h"
#include "concurrent\Runnable.h"

using namespace concurrent;

/*
 * In order to send data concurrently the GamePlayerClient class must be wrapped around this class which
 * starts a new thread through the Runnable interface.
 */
class ClientSender : public Runnable
{
public:
	ClientSender(GamePlayerClient*);
	virtual ~ClientSender(void);
protected:
	virtual DWORD run(void);
private:
	GamePlayerClient* client;
};

#endif
